import utils from "@/utils";
const { request } = utils;
export const askSparkStream = async (message) => {
  const res = await request.post(
    "/api/spark/chat",
    {
      model: "lite",
      messages: [
        {
          role: "user",
          content: message,
        },
      ],
    },
    {
      headers: {
        "Content-Type": "application/json",
      },
    }
  );

  return res.data; // axios 直接返回 response.data
};
